﻿using Microsoft.AspNetCore.SignalR;

namespace Internal.Message
{
    public class TodoHub : Hub
    {
        public async Task SendMessage(string user, string message)
        {
            // 将消息广播给所有连接的客户端
            await Clients.All.SendAsync("broadcastMessage", user, message);
        }
    }
}
